<template>
  <div>
    <tr>
          <td>合计:</td>
          <td colspan="5">
          {{sumList}}
          </td>
      </tr>
   </div>
</template>
 
<script>
export default {
  name: "",
  components: {},
  props: {
      goodList:Array,
  },
  data() {
    return {};
  },
  computed: {
      sumList(){
       return this.goodList.reduce((sum,item)=>{
          if(item.checked){
               sum += item.num * item.price
          }
          return sum
      },0)
      }
  },
  watch: {},
  created() {},
  methods: {}
};
</script>

<style scoped>
     
</style>